import {legacy_createStore,combineReducers,applyMiddleware} from 'redux';

import thunk from 'redux-thunk'
import logger from 'redux-logger'

import reduce from "./reducer/reduce" // 引入我的小仓库
import todulist_reducer from "./reducer/todulist_reducer"

// 使用combineReducers 合并我的仓库
const All_Reducer = combineReducers({
    reduce,
    todulist_reducer
})

const createStore=legacy_createStore(All_Reducer,applyMiddleware(thunk,logger))
export default createStore